package net.hn.hnms.biz.plan.request;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Author: ly
 * 销售管理
 */
@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper = false)
@Table(name = "plan_sale")
public class ExecutionSaleReq extends BaseReq implements Serializable {
    @ApiModelProperty(value = "销售id")
    @TableId(type = IdType.ASSIGN_UUID)
    private String saleExecutionId;
    @ApiModelProperty(value = "计划销量")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private BigDecimal salesVolume;
    @ApiModelProperty(value = "日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
    @NotNull(message = "请选择日期")
    private Date executionDate;
    @ApiModelProperty(value = "销售去向：  0内销  1外销公路 2外销铁路")
    private String salesDestination;
    @ApiModelProperty(value = "煤炭种类：  0.原煤 1.块煤 2末煤 3.混煤")
    private String typeCoal;

    private String mineCode;

}









